package org.chen.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 验证码响应DTO
 */
@Schema(description = "验证码响应")
public class CaptchaResponse {

    @Schema(description = "状态码", example = "200")
    private Integer code;

    @Schema(description = "返回消息", example = "操作成功")
    private String message;

    @Schema(description = "验证码UUID", example = "8c4c67ae96404f47a63707b3ea54538b")
    private String uuid;

    @Schema(description = "验证码图片(base64编码)", example = "/9j/4AAQSkZJRgABAgAAAQABAAD...")
    private String img;

    // 无参构造函数
    public CaptchaResponse() {
    }

    // 全参构造函数
    public CaptchaResponse(Integer code, String message, String uuid, String img) {
        this.code = code;
        this.message = message;
        this.uuid = uuid;
        this.img = img;
    }

    // Getter 和 Setter 方法
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "CaptchaResponse{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", uuid='" + uuid + '\'' +
                ", img='" + img + '\'' +
                '}';
    }
}